/*

 * Copyright (C) 2021 Huawei Device Co., Ltd.

 * Licensed under the Apache License, Version 2.0 (the "License");

 * you may not use this file except in compliance with the License.

 * You may obtain a copy of the License at

 *

 *     http://www.apache.org/licenses/LICENSE-2.0

 *

 * Unless required by applicable law or agreed to in writing, software

 * distributed under the License is distributed on an "AS IS" BASIS,

 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

 * See the License for the specific language governing permissions and

 * limitations under the License.

 */
package com.chinalwb.are.utils;

import java.io.Serializable;
import java.util.Map;

/**
 * 样式状态类
 *
 * @since 2021/06/22
 */
public class StateBean implements Serializable {
    /**
     * 样式  参考TextDecorator 中的 常量样式
     * {@link TextDecorator}
     */
    private int state = -1;
    /**
     * 字体颜色
     */
    private int color;
    /**
     * 字体大小
     */
    private int size;
    /**
     * 背景颜色
     */
    private int bgColor;

    /**
     * 删除线
     */
    private boolean strikethrough;

    /**
     * 样式集合
     */
    private Map<Integer, Boolean> styleMap;

    public Map<Integer, Boolean> getStyleMap() {
        return styleMap;
    }

    public void setStyleMap(Map<Integer, Boolean> styleMap) {
        this.styleMap = styleMap;
    }

    public boolean isStrikethrough() {
        return strikethrough;
    }

    public void setStrikethrough(boolean strikethrough) {
        this.strikethrough = strikethrough;
    }

    public int getBgColor() {
        return bgColor;
    }

    public void setBgColor(int bgColor) {
        this.bgColor = bgColor;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
